const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry: {
        index: ['./src/scss/index.scss', './src/font/iconfont.css', './src/js/index.js'],
        list: ['./src/scss/list.scss', './src/font/iconfont.css', './src/js/index.js'],
        case: ['./src/scss/case.scss', './src/font/iconfont.css', './src/js/index.js'],
        user: ['./src/scss/user.scss', './src/font/iconfont.css', './src/js/index.js'],
        list2: ['./src/scss/list2.scss', './src/font/iconfont.css', './src/js/index.js'],

    },
    plugins: [

        new HtmlWebpackPlugin({
            template: "./src/html/index.html",
            filename: "index.html",
            chunks: ["index"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/list.html",
            filename: "list.html",
            chunks: ["list"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/case.html",
            filename: "case.html",
            chunks: ["case"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/user.html",
            filename: "user.html",
            chunks: ["user"]
        }),
        new HtmlWebpackPlugin({
            template: "./src/html/list2.html",
            filename: "list2.html",
            chunks: ["list2"]
        }),

    ]
}